package com.oceansoft.core.jxkh.dao;

import com.hui.platform.system.exception.HuiException;
import com.oceansoft.core.common.util.Pagination;
import com.oceansoft.core.domain.SysUser;
import com.oceansoft.core.jxkh.domain.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/10/24.
 */
public interface IWorkLogDao {

    Pagination<WorkLog> querybycondition(HashMap<String, String> map, SysUser user)throws HuiException;

    int saveDailywork(Daliywork daliywork)throws HuiException;

    List<Daliywork> weekDaliywork(HashMap<String, String> map)throws HuiException;

    int saveWeekwork(WorkLog workLog) throws HuiException;

    List<WorkLog> monthsWeekwork(HashMap<String, String> map)throws HuiException;

    void saveDailyworkcontent(Daliyworkcontent content)throws HuiException ;

    Pagination<WorkLog> myWorkList(HashMap<String, String> map, SysUser user);

    void saveWorkLogContent(WorkLogcontent content) throws HuiException;

    List<Map<String,Object>> findLastWeekWork(String policeNum,String type);

    List<Map<String,Object>> findLastMonthWork(String policeNum, String type);

    List<Daliyworkcontent> dailyWorkContent(String policeNum, String workdate, String type) throws HuiException ;

    void deleteDailyWorkContent(int dbid) throws HuiException;

    List<Map<String,Object>> findMonthWork(String policeNum);

    int checkIsAdd(SysUser user, Map<String, String> map);

    Daliywork findDaliyworkByDate(String policeNum, String workdate);

    WorkLog findWorkLog(int dbid);

    List<WorkLogcontent> weekWorkInfo(String policeNum, int dbid);

    void deleteWeekworkContent(Integer dbid);

    void deleteData(int dbid);

    Ydxj findYdxj(int dbid);

    Pagination<Ydxj> wdybList(HashMap<String, String> paramap, SysUser user);

    void saveYdxj(Ydxj ydxj)throws HuiException ;

    Ydxj findLastYdxj(String policeNum);

    void deleteYdxj(int dbid);

    void editYdxj(Ydxj ydxj);

    boolean checkIsAddyb(Map<String, String> map, SysUser user);
}
